projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3108b8b
)
docs: Improve shortcut trigger docs
author
Matthias Clasen
<mclasen@redhat.com>
Thu, 23 Jul 2020 16:57:08 +0000
(12:57 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Thu, 23 Jul 2020 22:24:18 +0000
(18:24 -0400)
Point out the need to escape <> in xml.
gtk/gtkshortcuttrigger.c
patch
|
blob
|
history
diff --git
a/gtk/gtkshortcuttrigger.c
b/gtk/gtkshortcuttrigger.c
index 65e3164b5b2744245e51e12e25a694d682edd49f..8364932c59637dc22dd7d0c192b963cd493500d9 100644
(file)
--- a/
gtk/gtkshortcuttrigger.c
+++ b/
gtk/gtkshortcuttrigger.c
@@
-122,6
+122,10
@@
gtk_shortcut_trigger_trigger (GtkShortcutTrigger *self,
* - two valid trigger strings, separated by a `|` character, for a
* #GtkAlternativeTrigger: `<Control>q|<Control>w`
*
+ * Note that you will have to escape the `<` and `>` characters when specifying
+ * triggers in XML files, such as GtkBuilder ui files. Use `<` instead of
+ * `<` and `>` instead of `>`.
+ *
* Returns: (nullable) (transfer full): a new #GtkShortcutTrigger
* or %NULL on error
*/